package com.atguigu.easyexcel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

public class ExcelListener extends AnalysisEventListener<UserData> {

    //一行一行的读取excel 从第二行开始
    @Override
    public void invoke(UserData userData, AnalysisContext analysisContext) {
        System.out.println(userData);
    }

    @Override
    public void invokeHeadMap(java.util.Map<java.lang.Integer,java.lang.String> headMap, com.alibaba.excel.context.AnalysisContext context) {
        System.out.println("表头信息" + headMap);
    }



    //读取之后执行
    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
